]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
authorAndrey Borzenkov <arvidjaar@gmail.com>
Fri, 3 May 2013 14:39:17 +0000 (18:39 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Fri, 3 May 2013 14:39:17 +0000 (18:39 +0400)
and add it as source to functional_test module.

ChangeLog
grub-core/Makefile.core.def
grub-core/tests/checksums.h [moved from grub-core/tests/checksums.c with 100% similarity]
grub-core/tests/video_checksum.c

index 1b4c9254e8fda2365ebddaa71e7d635ddb82f3d2..8113b6d5fd0446c203b22def202b1c56e2cd3043 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-03  Andrey Borzenkov <arvidjaar@gmail.com>
+
+       Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
+       and add it as source to functional_test module.
+
 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
index da7637fa53e55f9d9da01aedef977f5dcca1a2d7..469524fe082748bb21c80f5e94faead610846165 100644 (file)
@@ -1731,6 +1731,7 @@ module = {
   name = functional_test;
   common = tests/lib/functional_test.c;
   common = tests/lib/test.c;
+  common = tests/checksums.h;
   common = tests/video_checksum.c;
   common = tests/fake_input.c;
   common = video/capture.c;
index 41a262a69410e632df314830a21a5a615a143eba..f3eb9fc5f856496e9d00e78b1c4fc264d32c0e79 100644 (file)
@@ -613,7 +613,7 @@ struct checksum_desc
 };
 
 const struct checksum_desc checksum_table[] = {
-#include "checksums.c"
+#include "checksums.h"
 };
 
 void
@@ -625,7 +625,7 @@ grub_video_checksum (const char *basename_in)
 
 #if defined (GENERATE_MODE) && defined (GRUB_MACHINE_EMU)
   if (genfd < 0)
-    genfd = open ("checksums.c", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
+    genfd = open ("checksums.h", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
   if (genfd >= 0)
     {
       char buf[400];