]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
modified the ruby testRunner generator, so the test prints filesnames properly. ALSO...
authorDamir Tomic <viperus@ntp.org>
Wed, 27 May 2015 09:51:28 +0000 (09:51 +0000)
committerDamir Tomic <viperus@ntp.org>
Wed, 27 May 2015 09:51:28 +0000 (09:51 +0000)
bk: 556593a0W5EOh925-uP3Gwldf-WyKg

sntp/unity/auto/generate_test_runner.rb
tests/libntp/run-test-modetoa.c
tests/libntp/run-test-uglydate.c

index cc8b8b6a22e7827a684b67c91968f0c1da5be61c..5398e86128dfe99d955a7560a12b517a80d3b03d 100644 (file)
@@ -246,7 +246,8 @@ class UnityTestRunnerGenerator
     output.puts("{")
     output.puts("  suite_setup();") unless @options[:suite_setup].nil?
     output.puts("  Unity.TestFile = \"#{filename}\";")
-    output.puts("  UnityBegin(\"\");")
+    output.puts("  UnityBegin(\"#{filename}\");")
+
     if (@options[:use_param_tests])
       tests.each do |test|
         if ((test[:args].nil?) or (test[:args].empty?))
index 776dda485dd5fe9a1e1251d9c990cbb69bacca92..ab49f716e75409690ed46f45c05c75079cba9d1f 100644 (file)
@@ -42,7 +42,7 @@ void resetTest()
 int main(void)
 {
   Unity.TestFile = "modetoa.c";
-  UnityBegin("");
+  UnityBegin("modetoa.c");
   RUN_TEST(test_KnownMode, 8);
   RUN_TEST(test_UnknownMode, 15);
 
index dd909adb046a7f7cc3912e8fcd03af531be1e670..cf745ba1c4da8b861baf176f0c200fad7c0deb77 100644 (file)
@@ -41,7 +41,7 @@ void resetTest()
 int main(void)
 {
   Unity.TestFile = "uglydate.c";
-  UnityBegin("");
+  UnityBegin("uglydate.c");
   RUN_TEST(test_ConstantDateTime, 9);
 
   return (UnityEnd());