Skip to content

chore: add test cases #174

chore: add test cases

chore: add test cases #174

Triggered via push September 19, 2024 20:58
Status Failure
Total duration 28m 19s
Artifacts 1

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors
error: expect(received).toBe(expected): test_bun/bun.spec.ts#L52
Expected: "/*\n * QuickJS Javascript Engine\n *\n * Copyright (c) 2017-2021 Fabrice Bellard\n * Copyright (c) 2017-2021 Charlie Gordon\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n#include <stdlib.h>\n#include <stdio.h>\n#include <stdarg.h>\n#include <inttypes.h>\n#include <string.h>\n#include <assert.h>\n#include <sys/time.h>\n#include <time.h>\n#include <fenv.h>\n#include <math.h>\n#if defined(__APPLE__)\n#include <malloc/malloc.h>\n#elif defined(__linux__)\n#include <malloc.h>\n#elif defined(__FreeBSD__)\n#include <malloc_np.h>\n#endif\n\n#include \"cutils.h\"\n#include \"list.h\"\n#include \"quickjs.h\"\n#include \"libregexp.h\"\n#ifdef CONFIG_BIGNUM\n#include \"libbf.h\"\n#endif\n\n#define OPTIMIZE 1\n#define SHORT_OPCODES 1\n#if defined(EMSCRIPTEN)\n#define DIRECT_DISPATCH 0\n#else\n#define DIRECT_DISPATCH 1\n#endif\n\n#if defined(__APPLE__)\n#define MALLOC_OVERHEAD 0\n#else\n#define MALLOC_OVERHEAD 8\n#endif\n\n#if !defined(_WIN32)\n/* define it if printf uses the RNDN rounding mode instead of RNDNA */\n#define CONFIG_PRINTF_RNDN\n#endif\n\n/* define to include Atomics.* operations which depend on the OS\n threads */\n#if !defined(EMSCRIPTEN)\n#define CONFIG_ATOMICS\n#endif\n\n#if !defined(EMSCRIPTEN)\n/* enable stack limitation */\n#define CONFIG_STACK_CHECK\n#endif\n\n/* dump object free */\n// #define DUMP_FREE\n// #define DUMP_CLOSURE\n/* dump the bytecode of the compiled functions: combination of bits\n 1: dump pass 3 final byte code\n 2: dump pass 2 code\n 4: dump pass 1 code\n 8: dump stdlib functions\n 16: dump bytecode in hex\n 32: dump line number table\n */\n// #define DUMP_BYTECODE (1)\n/* dump the occurence of the automatic GC */\n// #define DUMP_GC\n/* dump objects freed by the garbage collector */\n// #define DUMP_GC_FREE\n/* dump objects leaking when freeing the runtime */\n// #define DUMP_LEAKS 1\n/* dump memory usage before running the garbage collector */\n// #define DUMP_MEM\n// #define DUMP_OBJECTS /* dump objects in JS_FreeContext */\n// #define DUMP_ATOMS /* dump atoms in JS_FreeContext */\n// #define DUMP_SHAPES /* dump shapes in JS_FreeContext */\n// #define DUMP_MODULE_RESOLVE\n// #define DUMP_PROMISE\n// #define DUMP_READ_OBJECT\n\n/* test the GC by forcing it before each object allocation */\n// #define FORCE_GC_AT_MALLOC\n\n#ifdef CONFIG_ATOMICS\n#include <pthread.h>\n#include <stdatomic.h>\n#include <errno.h>\n#endif\n\nenum {\n /* classid tag */ /* union usage | properties */\n JS_CLASS_OBJECT = 1, /* must be first */\n JS_CLASS_ARRAY, /* u.array | length */\n JS_CLASS_ERROR,\n JS_CLASS_NUMBER, /* u.object_data */\n JS_CLASS_STRING, /* u.object_data */\n JS_CLASS_BOOLEAN, /* u.object_data */\n JS_CLASS_SYMBOL, /* u.object_data */\n JS_CLASS_ARGUMENTS, /* u.array | length */\n JS_CLASS_MAPPED_ARGUMENTS, /* | length */\n JS_CLASS_DATE, /* u.object_data */\n JS_CLASS_MODULE_NS,\n JS_CLASS_C_FUNCTION,
bun-test
Process completed with exit code 1.
deno-test
Process completed with exit code 1.
node-test
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
build
3.92 MB