Skip to content
Snippets Groups Projects
Commit 86e54f8b authored by Mick Jordan's avatar Mick Jordan
Browse files

test.native clean build fix; javadoc TestUserRNG

parent ba9d43dd
No related branches found
No related tags found
No related merge requests found
......@@ -37,13 +37,16 @@ endif
INCLUDE_DIR := $(subst test.native,native,$(TOPDIR))/include
all: $(C_OBJECTS)
all: mkbin $(C_OBJECTS)
ifneq ($(shell uname), Darwin)
gcc -fPIC -shared -o $(C_LIB) $(C_OBJECTS)
else
gcc -dynamiclib -undefined dynamic_lookup -o $(C_LIB) $(C_OBJECTS)
endif
mkbin:
mkdir -p $(BIN)
$(BIN)/%.o: %.c
gcc -I$(INCLUDE_DIR) -fPIC -O2 -c $< -o $@
......
/*
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -27,8 +27,14 @@ import java.nio.file.*;
import org.junit.*;
import com.oracle.truffle.r.runtime.*;
import com.oracle.truffle.r.runtime.ffi.*;
import com.oracle.truffle.r.test.*;
/**
* Test for a user-defined random number generator. Implicitly tests {@code dyn.load} as well as the
* {@link UserRngRFFI} interface. We take care to use relative paths so the expected output file is
* portable.
*/
public class TestUserRNG extends TestBase {
@Test
public void testUserRNG() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment