]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/helper/test-example-tap.c
t0080: turn t-basic unit test into a helper
[thirdparty/git.git] / t / helper / test-example-tap.c
similarity index 95%
rename from t/unit-tests/t-basic.c
rename to t/helper/test-example-tap.c
index fda1ae59a63f2f60f427da634af53ce495319eb0..d072ad559f64f71823f25462832eb7bc53864828 100644 (file)
@@ -1,4 +1,5 @@
-#include "test-lib.h"
+#include "test-tool.h"
+#include "t/unit-tests/test-lib.h"
 
 /*
  * The purpose of this "unit test" is to verify a few invariants of the unit
@@ -69,7 +70,7 @@ static void t_empty(void)
        ; /* empty */
 }
 
-int cmd_main(int argc, const char **argv)
+int cmd__example_tap(int argc, const char **argv)
 {
        test_res = TEST(check_res = check_int(1, ==, 1), "passing test");
        TEST(t_res(1), "passing test and assertion return 1");