Is there a way to test Linux or Mac os X versions without owning the os?

Or if windows build works well, it would be safe to assume that other ones will too?
no

you can use a virtual machine to install that OS and then test the builds, that would allow you to test without having to own a computer for that OS, but you would still have to own the OS to install it that way - and in case of MacOS even that is problematic because MacOS runs only on apple hardware which is difficult to simulate.
Or if windows build works well, it would be safe to assume that other ones will too?

From my own experience, usually if the Windows was ok, others where ok too, but it's always wise to test it (or have someone to test for you).
Yes. Find testers who how has a Mac and get them to test it for you.
Doing the same for Linux is also a good idea but not as important as here you can go both the VM and dualboot route to test things yourself.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-test-linux-or-mac-os-x-versions-without-owning-the-os.170880/