ballerina-platform / ballerina-lang

The Ballerina Programming Language

Home Page:https://ballerina.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Failing testcase for native image build in cli (testNativeFunctionMockTests)

Shadow-Devil opened this issue · comments

Description

This was extracted as a separate issue from #42797. See also comment: #42797 (comment)
Output of the failing test:

java.lang.AssertionError: io.ballerina.cli.launcher.BLauncherException	
[error: compilation contains errors]	
Compiling source	
	bar/winner:0.1.0	
ERROR [tests/tes.bal:(3:1,3:21)] cannot resolve module 'ballerina/os'	
ERROR [tests/tes.bal:(18:23,18:39)] undefined function 'getUserHome'	
ERROR [tests/tes.bal:(18:23,18:39)] undefined module 'os'	
ERROR [modules/util2/tests/tes.bal:(3:1,3:21)] cannot resolve module 'ballerina/os'	
ERROR [modules/util2/tests/tes.bal:(7:26,7:42)] undefined function 'getUserHome'	
ERROR [modules/util2/tests/tes.bal:(7:26,7:42)] undefined module 'os'	
ERROR [modules/util2/tests/tes.bal:(8:26,8:42)] undefined function 'getUserHome'	
ERROR [modules/util2/tests/tes.bal:(8:26,8:42)] undefined module 'os'	
ERROR [modules/util/tests/lib_test.bal:(5:1,5:21)] cannot resolve module 'ballerina/os'	
ERROR [modules/util/tests/lib_test.bal:(29:23,29:39)] undefined function 'getUserHome'	
ERROR [modules/util/tests/lib_test.bal:(29:23,29:39)] undefined module 'os'	
ERROR [modules/util/tests/lib_test2.bal:(3:1,3:21)] cannot resolve module 'ballerina/os'	
ERROR [modules/util/tests/lib_test2.bal:(11:23,11:39)] undefined function 'getUserHome'	
ERROR [modules/util/tests/lib_test2.bal:(11:23,11:39)] undefined module 'os'

Steps to Reproduce

Run gradle :ballerina-cli:test

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response