Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d28bf2

Browse files
author
Michael Meskes
committed
Two more changes to regression tests to fix two differences in different setups.
1 parent 63d3f5e commit 1d28bf2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/interfaces/ecpg/test/complex/test4.pgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ EXEC SQL BEGIN DECLARE SECTION;
3333
EXEC SQL END DECLARE SECTION;
3434

3535
strcpy(t, "0123456789");
36-
setlocale(LC_ALL, "de_DE");
36+
setlocale(LC_ALL, "C");
3737

3838
ECPGdebug(1, stderr);
3939

src/interfaces/ecpg/test/expected/complex-test4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ main (void)
152152

153153

154154
strcpy(t, "0123456789");
155-
setlocale(LC_ALL, "de_DE");
155+
setlocale(LC_ALL, "C");
156156

157157
ECPGdebug(1, stderr);
158158

src/interfaces/ecpg/test/expected/complex-test4.stdout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Found f=14,070000 text=0123456789 b=1
1+
Found f=14.070000 text=0123456789 b=1
22
Found a[0] = 9
33
Found a[1] = 8
44
Found a[2] = 7

src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
384384
in = "1980-04-12 3:49:44 ";
385385
i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
386386
text = PGTYPEStimestamp_to_asc(ts1);
387-
printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
387+
printf("timestamp_defmt_asc(%s, NULL) = %s, error: %d\n", in, text, i);
388388
free(text);
389389

390390
fmt = "%B %d, %Y. Time: %I:%M%p";

src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ timestamp_defmt_asc(abc
4141
18 October %34 17:28:44 CEST 80, abc%n %C %B %%%d %H:%M:%S %Z %y) = 1880-10-31 15:28:44, error (should be error!): 1
4242
timestamp_defmt_asc(abc
4343
18 October %34 17:28:44 CEST 80, ) = 1880-10-31 15:28:44, error (should be error!): 1
44-
timestamp_defmt_asc(1980-04-12 3:49:44 , (null)) = 1980-04-12 03:49:44, error: 0
44+
timestamp_defmt_asc(1980-04-12 3:49:44 , NULL) = 1980-04-12 03:49:44, error: 0
4545
timestamp_defmt_asc(July 14, 1988. Time: 9:15am, %B %d, %Y. Time: %I:%M%p) = 1988-07-14 09:15:00, error: 0
4646
timestamp_defmt_asc(September 6 at 01:30 pm in the year 1983, %B %d at %I:%M %p in the year %Y) = 1983-09-06 13:30:00, error: 0
4747
timestamp_defmt_asc( 1976, July 14. Time: 9:15am, %Y, %B %d. Time: %I:%M %p) = 1976-07-14 09:15:00, error: 0

src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ main(void)
313313
in = "1980-04-12 3:49:44 ";
314314
i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1);
315315
text = PGTYPEStimestamp_to_asc(ts1);
316-
printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i);
316+
printf("timestamp_defmt_asc(%s, NULL) = %s, error: %d\n", in, text, i);
317317
free(text);
318318

319319
fmt = "%B %d, %Y. Time: %I:%M%p";

0 commit comments

Comments
 (0)