test: avoid copying test source files

Converting the helper functions to be inlined and making the helper file
header only.

PR-URL: https://github.com/nodejs/node/pull/49515
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
This commit is contained in:
legendecas
2023-09-06 21:11:09 +08:00
committed by Node.js GitHub Bot
parent ae115d68e0
commit 178dff255f
65 changed files with 155 additions and 147 deletions

View File

@@ -3,7 +3,6 @@
{
"target_name": "test_instance_data",
"sources": [
"../entry_point.c",
"test_instance_data.c"
]
}

View File

@@ -1,7 +1,8 @@
#include <js_native_api.h>
#include <stdio.h>
#include <stdlib.h>
#include <js_native_api.h>
#include "../common.h"
#include "../entry_point.h"
typedef struct {
size_t value;