• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A lambda-based C++ unit-testing framework.


Commit MetaInfo

Revisão5e6fd4546830f54c70841fd1cdaf5aab1da2cc9e (tree)
Hora2020-01-19 21:07:08
AutorKaz Nishimura <kazssym@linu...>
CommiterKaz Nishimura

Mensagem de Log

Add 'TestDriver::main' implementation

Mudança Sumário

Diff

diff -r b4ded0c30cae -r 5e6fd4546830 libcppunitx/driver.cpp
--- a/libcppunitx/driver.cpp Sun Jan 19 21:00:59 2020 +0900
+++ b/libcppunitx/driver.cpp Sun Jan 19 21:07:08 2020 +0900
@@ -1,5 +1,5 @@
1-// engine.cpp - test engine
2-// Copyright (C) 2018 Kaz Nishimura
1+// driver.cpp
2+// Copyright (C) 2018-2020 Kaz Nishimura
33 //
44 // This program is free software: you can redistribute it and/or modify it
55 // under the terms of the GNU General Public License as published by the Free
@@ -20,10 +20,21 @@
2020 #include <config.h>
2121 #endif
2222
23+#define _CPPUNITX_DRIVER_IMPLEMENTATION 1
2324 #include <bits/cppunitx/driver.h>
25+
2426 #include <cstdlib>
2527
28+using namespace cppunitx;
29+
30+// Class 'TestDriver' implementation.
31+
32+int TestDriver::main(const int argc, char **const argv)
33+{
34+ return EXIT_FAILURE; // TODO: Implement this function.
35+}
36+
2637 int cppunitx::main(const int argc, char *argv[])
2738 {
28- return EXIT_FAILURE; // TODO: Do work.
39+ return TestDriver::main(argc, argv);
2940 }