Skip to content

Commit 332fc11

Browse files
committed
[GR-23356] make test_zipfile64 pass
1 parent e565898 commit 332fc11

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

graalpython/com.oracle.graal.python.cext/bz2/bz2.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@
4444
* see cpython/Modules/_bz2module.c
4545
*/
4646

47-
// #define DEBUG 500
47+
#define DEBUG 500
4848
// #define BENCHMARK
4949

5050
#include <limits.h>
5151
#include <stdlib.h>
52-
// #include <assert.h>
5352
#include <string.h>
5453

5554

@@ -60,7 +59,7 @@ typedef char Byte; /* 8 bits */
6059
// Integer.MAX_INT
6160
#define GRAALPYTHON_MAX_SIZE (INT_MAX)
6261

63-
#ifdef DEBUG
62+
#ifndef NDEBUG
6463
#include <stdio.h>
6564
#include <stdarg.h>
6665
static void debug_log(int level, char *file, int line, char *format, ...) {

graalpython/com.oracle.graal.python.cext/zlib/zlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* see cpython/Modules/zlibmodule.c
4545
*/
4646

47-
// #define DEBUG 500
47+
#define DEBUG 500
4848
// #define BENCHMARK
4949

5050
#include <limits.h>
@@ -57,7 +57,7 @@
5757
// Integer.MAX_INT
5858
#define GRAALPYTHON_MAX_SIZE (INT_MAX)
5959

60-
#ifdef DEBUG
60+
#ifndef NDEBUG
6161
#include <stdio.h>
6262
#include <stdarg.h>
6363
static void debug_log(int level, char *file, int line, char *format, ...) {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*graalpython.lib-python.3.test.test_zipfile64.OtherTests.testMoreThan64kFiles
2+
*graalpython.lib-python.3.test.test_zipfile64.OtherTests.testMoreThan64kFilesAppend
3+
*graalpython.lib-python.3.test.test_zipfile64.TestsWithSourceFile.testDeflated
4+
*graalpython.lib-python.3.test.test_zipfile64.TestsWithSourceFile.testStored

0 commit comments

Comments
 (0)